package com.smartleanx.module.hrm.dal.mysql.examine.examineReview;

import java.util.*;

import com.smartleanx.framework.common.pojo.PageResult;
import com.smartleanx.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.smartleanx.framework.mybatis.core.mapper.BaseMapperX;
import com.smartleanx.module.hrm.dal.dataobject.examine.examineReview.ExamineReviewDO;
import org.apache.ibatis.annotations.Mapper;
import com.smartleanx.module.hrm.controller.admin.examine.examineReview.vo.*;

/**
 * 审核关联 Mapper
 *
 * @author 
 */
@Mapper
public interface ExamineReviewMapper extends BaseMapperX<ExamineReviewDO> {

    default PageResult<ExamineReviewDO> selectPage(ExamineReviewPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ExamineReviewDO>()
                .eqIfPresent(ExamineReviewDO::getExamineId, reqVO.getExamineId())
                .eqIfPresent(ExamineReviewDO::getRecordId, reqVO.getRecordId())

                .orderByDesc(ExamineReviewDO::getId));
    }

}